.class Lcom/xingbook/baike/activity/j;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AbsListView$OnScrollListener;


# instance fields
.field a:I

.field b:I

.field final synthetic c:Lcom/xingbook/baike/activity/BaikeCommentActivity;


# direct methods
.method constructor <init>(Lcom/xingbook/baike/activity/BaikeCommentActivity;)V
    .locals 1

    const/4 v0, -0x1

    iput-object p1, p0, Lcom/xingbook/baike/activity/j;->c:Lcom/xingbook/baike/activity/BaikeCommentActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    iput v0, p0, Lcom/xingbook/baike/activity/j;->a:I

    iput v0, p0, Lcom/xingbook/baike/activity/j;->b:I

    return-void
.end method


# virtual methods
.method public onScroll(Landroid/widget/AbsListView;III)V
    .locals 2

    iget v0, p0, Lcom/xingbook/baike/activity/j;->a:I

    if-ne v0, p2, :cond_0

    iget v0, p0, Lcom/xingbook/baike/activity/j;->b:I

    if-eq v0, p3, :cond_2

    :cond_0
    iput p2, p0, Lcom/xingbook/baike/activity/j;->a:I

    iput p3, p0, Lcom/xingbook/baike/activity/j;->b:I

    if-lez p2, :cond_3

    add-int/lit8 p2, p2, -0x1

    :cond_1
    :goto_0
    iget-object v0, p0, Lcom/xingbook/baike/activity/j;->c:Lcom/xingbook/baike/activity/BaikeCommentActivity;

    invoke-static {v0}, Lcom/xingbook/baike/activity/BaikeCommentActivity;->v(Lcom/xingbook/baike/activity/BaikeCommentActivity;)Lcom/xingbook/baike/a/b;

    move-result-object v0

    add-int v1, p2, p3

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, p2, v1}, Lcom/xingbook/baike/a/b;->a(II)V

    :cond_2
    return-void

    :cond_3
    if-nez p2, :cond_1

    add-int/lit8 p3, p3, -0x1

    goto :goto_0
.end method

.method public onScrollStateChanged(Landroid/widget/AbsListView;I)V
    .locals 1

    const/4 v0, 0x1

    if-ne p2, v0, :cond_0

    iget-object v0, p0, Lcom/xingbook/baike/activity/j;->c:Lcom/xingbook/baike/activity/BaikeCommentActivity;

    invoke-static {v0}, Lcom/xingbook/baike/activity/BaikeCommentActivity;->B(Lcom/xingbook/baike/activity/BaikeCommentActivity;)V

    :cond_0
    return-void
.end method
